// 接口地址
let BASE_URL = ''
// 另一个接口地址 防止项目多个接口地址
let BASE_URL_AMAP = ''
// 静态资源地址
let BASE_STATIC_URL = ''
// 静态资源上传地址
let BASE_STATIC_UPLOAD_URL = ''
// 接口请求超时 时间
const TIME_OUT = 60000

switch (process.env.NODE_ENV) {
    case 'development':
        BASE_URL = '/fetch'
        BASE_URL_AMAP = '/amap'
        BASE_STATIC_URL = ''
        BASE_STATIC_UPLOAD_URL = ''
        break
    case 'production':
        BASE_URL = 'https://wenlv.jlsxwkj.com/api'
        BASE_URL_AMAP = '/amap'
        BASE_STATIC_URL = ''
        BASE_STATIC_UPLOAD_URL = ''
        break
    case 'test':
        BASE_URL = '/api'
        BASE_URL_AMAP = '/amap'
        BASE_STATIC_URL = ''
        BASE_STATIC_UPLOAD_URL = ''
        break
}

export { BASE_URL, BASE_URL_AMAP, BASE_STATIC_URL, TIME_OUT }
